Optimal. Leaf size=117 \[ -\frac {\left (3 a d^2+2 b c^2\right ) \tan ^{-1}\left (\frac {\sqrt {d x-c} \sqrt {c+d x}}{c}\right )}{2 c^5}-\frac {3 a d^2+2 b c^2}{2 c^4 \sqrt {d x-c} \sqrt {c+d x}}+\frac {a}{2 c^2 x^2 \sqrt {d x-c} \sqrt {c+d x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 117, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {454, 104, 21, 92, 205} \[ -\frac {3 a d^2+2 b c^2}{2 c^4 \sqrt {d x-c} \sqrt {c+d x}}-\frac {\left (3 a d^2+2 b c^2\right ) \tan ^{-1}\left (\frac {\sqrt {d x-c} \sqrt {c+d x}}{c}\right )}{2 c^5}+\frac {a}{2 c^2 x^2 \sqrt {d x-c} \sqrt {c+d x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 92
Rule 104
Rule 205
Rule 454
Rubi steps
\begin {align*} \int \frac {a+b x^2}{x^3 (-c+d x)^{3/2} (c+d x)^{3/2}} \, dx &=\frac {a}{2 c^2 x^2 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {1}{2} \left (2 b+\frac {3 a d^2}{c^2}\right ) \int \frac {1}{x (-c+d x)^{3/2} (c+d x)^{3/2}} \, dx\\ &=-\frac {2 b c^2+3 a d^2}{2 c^4 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {a}{2 c^2 x^2 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {\left (-2 b-\frac {3 a d^2}{c^2}\right ) \int \frac {c d+d^2 x}{x \sqrt {-c+d x} (c+d x)^{3/2}} \, dx}{2 c^2 d}\\ &=-\frac {2 b c^2+3 a d^2}{2 c^4 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {a}{2 c^2 x^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (2 b c^2+3 a d^2\right ) \int \frac {1}{x \sqrt {-c+d x} \sqrt {c+d x}} \, dx}{2 c^4}\\ &=-\frac {2 b c^2+3 a d^2}{2 c^4 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {a}{2 c^2 x^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (d \left (2 b c^2+3 a d^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{c^2 d+d x^2} \, dx,x,\sqrt {-c+d x} \sqrt {c+d x}\right )}{2 c^4}\\ &=-\frac {2 b c^2+3 a d^2}{2 c^4 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {a}{2 c^2 x^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (2 b c^2+3 a d^2\right ) \tan ^{-1}\left (\frac {\sqrt {-c+d x} \sqrt {c+d x}}{c}\right )}{2 c^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.03, size = 75, normalized size = 0.64 \[ \frac {a c^2-x^2 \left (3 a d^2+2 b c^2\right ) \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};1-\frac {d^2 x^2}{c^2}\right )}{2 c^4 x^2 \sqrt {d x-c} \sqrt {c+d x}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.07, size = 138, normalized size = 1.18 \[ \frac {{\left (a c^{3} - {\left (2 \, b c^{3} + 3 \, a c d^{2}\right )} x^{2}\right )} \sqrt {d x + c} \sqrt {d x - c} - 2 \, {\left ({\left (2 \, b c^{2} d^{2} + 3 \, a d^{4}\right )} x^{4} - {\left (2 \, b c^{4} + 3 \, a c^{2} d^{2}\right )} x^{2}\right )} \arctan \left (-\frac {d x - \sqrt {d x + c} \sqrt {d x - c}}{c}\right )}{2 \, {\left (c^{5} d^{2} x^{4} - c^{7} x^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.54, size = 211, normalized size = 1.80 \[ \frac {{\left (2 \, b c^{2} + 3 \, a d^{2}\right )} \arctan \left (\frac {{\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2}}{2 \, c}\right )}{c^{5}} - \frac {{\left (b c^{2} + a d^{2}\right )} \sqrt {d x + c}}{2 \, \sqrt {d x - c} c^{5}} + \frac {2 \, {\left (b c^{2} + a d^{2}\right )}}{{\left ({\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2} + 2 \, c\right )} c^{4}} + \frac {2 \, {\left (a d^{2} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{6} - 4 \, a c^{2} d^{2} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2}\right )}}{{\left ({\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{4} + 4 \, c^{2}\right )}^{2} c^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.09, size = 315, normalized size = 2.69 \[ \frac {3 a \,d^{4} x^{4} \ln \left (-\frac {2 \left (c^{2}-\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\right )}{x}\right )+2 b \,c^{2} d^{2} x^{4} \ln \left (-\frac {2 \left (c^{2}-\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\right )}{x}\right )-3 a \,c^{2} d^{2} x^{2} \ln \left (-\frac {2 \left (c^{2}-\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\right )}{x}\right )-2 b \,c^{4} x^{2} \ln \left (-\frac {2 \left (c^{2}-\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\right )}{x}\right )-3 \sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\, a \,d^{2} x^{2}-2 \sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\, b \,c^{2} x^{2}+\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\, a \,c^{2}}{2 \sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\, \sqrt {d x +c}\, \sqrt {d x -c}\, c^{4} x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.26, size = 104, normalized size = 0.89 \[ \frac {b \arcsin \left (\frac {c}{d {\left | x \right |}}\right )}{c^{3}} + \frac {3 \, a d^{2} \arcsin \left (\frac {c}{d {\left | x \right |}}\right )}{2 \, c^{5}} - \frac {b}{\sqrt {d^{2} x^{2} - c^{2}} c^{2}} - \frac {3 \, a d^{2}}{2 \, \sqrt {d^{2} x^{2} - c^{2}} c^{4}} + \frac {a}{2 \, \sqrt {d^{2} x^{2} - c^{2}} c^{2} x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {b\,x^2+a}{x^3\,{\left (c+d\,x\right )}^{3/2}\,{\left (d\,x-c\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________